package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.SysUser;
import com.example.demo.entity.ThreadInput;
import com.example.demo.repository.ThreadInputRepository;

@Service
public class ThreadInputService extends BaseService<ThreadInput, Integer> {

	@Autowired
	ThreadInputRepository threadDao;
	
	public List<ThreadInput> findByUserId(SysUser user) {
		return threadDao.findByUserId(user);
	}

}
